import request from '@/api/request'

export function getQuestions(params) {
  return request({
    url: '/polls/wx_question/',
    method: 'GET',
    params
  })
}


export function getQuestionById(question_id) {
  return request({
    url: `/polls/wx_question/${question_id}/`,
    method: 'GET'
  })
}


export function updateWxChoices(data) {
  return request({
    url: `/polls/wx_question/${data.id}/`,
    method: 'PUT',
    data
  })
}